package io.yunho.yunho.interview.one.singleton.autocreate;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author: Jason
 * @date: 2021/3/6 10:15
 * @description:
 */
@Component
@ConfigurationProperties()
public class SingletonStaticInit {
    public static SingletonStaticInit INSTANCE =new SingletonStaticInit();
    private String name;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "SingletonStaticInit{" +
                "name='" + name + '\'' +
                '}';
    }
}
